package com.xuyl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuyl.domain.User;
import com.xuyl.entity.QueryBean;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author nisemono
 * @date 2023-02-27 19:19
 */
@Transactional
public interface IUserService {
    public boolean updateUserInfoById(User user);

    boolean save(User user);

    List<User> getAll();

    boolean deleteById(Integer id);


    User getUserById(Integer id);

    IPage<User> getUserInfoPage(QueryBean queryBean);

    boolean deleteBatch(List<Integer> ids);

    boolean updateDeletedUserInfoById(Integer id);
}
